.problem-icon-link,
.problem-icon-list {
  display: inline-block;
  height: 16px;
  white-space: nowrap;
}
.problem-icon-link .problem-icon-list-item,
.problem-icon-list .problem-icon-list-item {
  font-size: 12px;
  color: #ffffff;
  border-color: transparent;
}

.problem-icon-list .problem-icon-list-item:not(:last-of-type) {
  margin-right: 5px;
}

.problem-icon-link {
  overflow: hidden;
  border-radius: 2px;
}
.problem-icon-link .problem-icon-list-item {
  border-radius: 0;
}
.problem-icon-link:link,
.problem-icon-link:hover,
.problem-icon-link:focus {
  border-bottom: none;
}
.problem-icon-link:focus {
  box-shadow: 0 0 0 2px rgba(30, 135, 227, 0.35);
}

.ui-sortable tbody {
  position: relative;
}
.ui-sortable .td-drag-icon {
  width: 12px;
}
.ui-sortable.ui-sortable-disabled .drag-icon {
  cursor: default;
  color: #ced6da;
}

#expressions_list .ui-sortable-helper {
  display: table;
}

.graph-legend {
  text-align: left;
  white-space: nowrap;
  text-overflow: ellipsis;
  overflow: hidden;
}

.preprocessing-test-results td {
  vertical-align: top !important;
}
.preprocessing-test-results .rel-container {
  top: 4px;
  margin-left: 3px;
}

#preprocessing-test-form .table-forms-separator {
  margin-top: -2px;
}
#preprocessing-test-form .runtime-error-fields {
  display: flex;
  justify-content: space-between;
}
#preprocessing-test-form .runtime-error-fields label {
  width: auto;
  padding-inline-end: 8px;
}
#preprocessing-test-form .runtime-error-fields > div {
  display: inline-flex;
}
#preprocessing-test-form .runtime-error-fields .multilineinput-control {
  width: 250px;
}
#preprocessing-test-form .item-test-result {
  display: inline-flex;
}

.totals-list:not(.list-table) {
  display: flex;
  height: 100%;
}
.totals-list > div {
  flex: 1;
  align-items: center;
  display: flex;
  line-height: 20px;
  padding: 0 10px;
  position: relative;
}
.totals-list .count {
  font-size: 16px;
}
.totals-list.totals-list-horizontal > div {
  flex-direction: column;
  justify-content: center;
  min-width: 55px;
  text-align: center;
}
.totals-list.totals-list-horizontal .count,
.totals-list.totals-list-horizontal .name {
  width: 100%;
}
.totals-list.totals-list-vertical {
  flex-direction: column;
  min-width: min-content;
}
.totals-list.totals-list-vertical > div {
  column-gap: 5px;
  min-height: 20px;
  padding-top: 2px;
  padding-bottom: 2px;
  white-space: nowrap;
}

.macro-input-group {
  position: relative;
  display: flex;
  align-items: stretch;
  width: 100%;
}
.macro-input-group * {
  box-sizing: border-box;
}
.macro-input-group input,
.macro-input-group textarea {
  flex: 1;
  border-right: 0;
  border-top-right-radius: 0;
  border-bottom-right-radius: 0;
}
.macro-input-group input:focus + .btn-undo,
.macro-input-group textarea:focus + .btn-undo {
  border-color: #02659f;
}
.macro-input-group .btn-change,
.macro-input-group .btn-undo {
  border-radius: 0;
}
.macro-input-group .btn-change[disabled] {
  display: none;
}
.macro-input-group .btn-undo {
  display: none;
  color: #768d99;
  background-color: #ffffff;
  border-width: 1px 0;
  border-color: #acbbc2;
}
.macro-input-group .btn-undo::before {
  font-size: 16px;
}
.macro-input-group .btn-undo:focus,
.macro-input-group .btn-undo:hover {
  color: #ffffff;
  background-color: #02659f;
  border-color: #02659f;
}
.macro-input-group .btn-undo.is-focused {
  border-color: #02659f;
}

.input-secret {
  position: relative;
  display: flex;
  flex: 1;
}
.input-secret input {
  flex: 1;
}
.input-secret button {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  opacity: 0;
}
.input-secret button:enabled:hover,
.input-secret button:enabled:focus,
.input-secret button:enabled:active {
  opacity: 1;
  animation: fadein 0.2s;
}

.btn-dropdown-container {
  display: flex;
}
.btn-dropdown-container .btn-dropdown-toggle {
  width: auto;
  height: auto;
  padding-right: 3px;
  align-items: center;
  line-height: 30px;
  border-radius: 0 $border-radius-base $border-radius-base 0;
}
.btn-dropdown-container .btn-dropdown-toggle[class^='zi-'],
.btn-dropdown-container .btn-dropdown-toggle[class*=' zi-'] {
  padding-left: 3px;
  color: #768d99;
}
.btn-dropdown-container .btn-dropdown-toggle[class^='zi-']::before,
.btn-dropdown-container .btn-dropdown-toggle[class*=' zi-']::before {
  margin-top: 2px;
  margin-right: 2px;
}
.btn-dropdown-container .btn-dropdown-toggle[class^='zi-']:hover,
.btn-dropdown-container .btn-dropdown-toggle[class^='zi-']:active,
.btn-dropdown-container .btn-dropdown-toggle[class^='zi-']:focus,
.btn-dropdown-container .btn-dropdown-toggle[class*=' zi-']:hover,
.btn-dropdown-container .btn-dropdown-toggle[class*=' zi-']:active,
.btn-dropdown-container .btn-dropdown-toggle[class*=' zi-']:focus {
  color: $primary-color;
}
.btn-dropdown-container .btn-dropdown-toggle[class^='zi-'][disabled],
.btn-dropdown-container .btn-dropdown-toggle[class*=' zi-'][disabled] {
  color: #acbbc2;
}
.btn-dropdown-container
  .btn-dropdown-toggle[class^='zi-'][aria-expanded='true'],
.btn-dropdown-container
  .btn-dropdown-toggle[class*=' zi-'][aria-expanded='true'] {
  color: $primary-color;
  background-color: transparent;
  border-color: $primary-color;
}
.btn-dropdown-container .btn-dropdown-toggle::after {
  content: '';
  margin-top: 7px;
  font-size: 10px;
}
.btn-dropdown-container .btn-dropdown-toggle:not(:empty)::before {
  padding-left: 4px;
}
.btn-dropdown-container .btn-dropdown-toggle:not(:empty)::after {
  margin-left: 4px;
}

.btn-split {
  position: relative;
  display: inline-flex;
  margin-right: 10px;
}
.btn-split li {
  display: inline-flex;
}
.btn-split li:first-child button {
  border-top-right-radius: 0;
  border-bottom-right-radius: 0;
}
.btn-split li:last-child {
  margin-left: -1px;
}
.btn-split li:last-child button {
  border-top-left-radius: 0;
  border-bottom-left-radius: 0;
}
.btn-split li:only-child button {
  border-radius: $border-radius-base;
}
.btn-split button:focus {
  z-index: 1;
}
.btn-split button[aria-expanded='true'] {
  color: $primary-color;
  // background-color: transparent;
  border-color: $primary-color;
}

.checkbox-block {
  margin: 10px 0;
}

#tbl_macros.massupdate-remove th,
#tbl_macros.massupdate-remove td {
  display: none;
}
#tbl_macros.massupdate-remove th:nth-child(1),
#tbl_macros.massupdate-remove td:nth-child(1),
#tbl_macros.massupdate-remove td.nowrap {
  display: table-cell;
}

.table-forms-td-right .interfaces {
  margin-top: 5px;
}

.interfaces {
  display: grid;
  grid-template-columns: 26px repeat(7, max-content);
  margin-bottom: 5px;
  line-height: 24px;
}
.interfaces .interface-container {
  display: contents;
}
.interfaces .interface-container.interface-container-header .interface-cell {
  padding: 0 5px 0 0;
  color: #768d99;
}
.interfaces
  .interface-container.interface-container-header
  .interface-cell-action {
  grid-column: span 2;
}
.interfaces
  .interface-container:not(.interface-container-header):not(:empty)
  ~ .interface-container:not(:empty)
  :first-child
  .interface-cell:not(.interface-cell-details) {
  padding-top: 10px;
  margin-top: 5px;
  border-top: 1px solid #acbbc2;
}
.interfaces .interface-row {
  display: contents;
}
.interfaces .interface-row .interface-btn-toggle {
  display: none;
  vertical-align: top;
}
.interfaces .interface-row .interface-btn-toggle[aria-expanded='true'] {
  transform: rotate(-180deg);
}
.interfaces .interface-row[data-type='2'] .list-accordion-item-body {
  display: none;
  padding-top: 0;
}
.interfaces .interface-row[data-type='2'] .interface-btn-toggle {
  display: inline-block;
}
.interfaces
  .interface-row[data-type='2'].list-accordion-item-opened
  .list-accordion-item-body {
  display: block;
}
.interfaces .interface-cell {
  padding: 5px 5px 5px 0;
}
.interfaces .interface-cell.interface-cell-details {
  display: none;
  grid-column: 1 / -1;
}
.interfaces .no-interface {
  grid-column: 1 / -1;
  color: #768d99;
}

.debug-modal.overlay-dialogue.modal .overlay-dialogue-body {
  overflow-x: auto;
}
.debug-modal.overlay-dialogue.modal .overlay-dialogue-body::-webkit-scrollbar {
  height: 9px;
}
.debug-modal .logitems pre {
  white-space: nowrap;
}
.debug-modal .logtotalms {
  color: #768d99;
  float: left;
  line-height: 24px;
}

#itemsTable .table-col-handle {
  width: 12px;
}
#itemsTable .table-col-no {
  width: 20px;
}
#itemsTable .table-col-name-normal {
  width: 285px;
}
#itemsTable .table-col-name {
  width: 365px;
}
#itemsTable .table-col-type {
  width: 85px;
}
#itemsTable .table-col-function {
  width: 85px;
}
#itemsTable .table-col-draw-style {
  width: 85px;
}
#itemsTable .table-col-y-axis-side {
  width: 85px;
}
#itemsTable .table-col-color {
  width: 55px;
}
#itemsTable .table-col-action {
  width: 55px;
}

.z-select.z-select-host-interface .description:not(:empty),
z-select.z-select-host-interface .description:not(:empty) {
  display: block;
  margin-top: 5px;
  color: #9d9d9d;
}
.z-select.z-select-host-interface[disabled] .description:not(:empty),
.z-select.z-select-host-interface li[disabled] .description:not(:empty),
z-select.z-select-host-interface[disabled] .description:not(:empty),
z-select.z-select-host-interface li[disabled] .description:not(:empty) {
  color: #acbbc2;
}

.multiselect-description-container {
  display: flex;
  align-items: center;
}
.multiselect-description-container > .multiselect-control {
  margin-right: 5px;
}

.rules-status-container .status-green,
.rules-status-container .status-grey {
  margin: 3px 3px 3px 0;
}

.input-section-header {
  padding-top: 10px;
}

.modal-popup-preprocessing .preprocessing-list-head .step-name {
  flex: 0 0 190px;
}
.modal-popup-preprocessing .preprocessing-list-item .step-name {
  flex: 0 0 180px;
}
.modal-popup-preprocessing .preprocessing-list {
  min-width: unset;
  max-width: unset;
}

.modal-popup-medium .table-forms-container,
.modal-popup-medium .browser-warning-container,
.modal-popup-large .table-forms-container,
.modal-popup-large .browser-warning-container,
.modal-popup-static .table-forms-container,
.modal-popup-static .browser-warning-container,
.modal-popup-preprocessing .table-forms-container,
.modal-popup-preprocessing .browser-warning-container {
  border: none;
}
.modal-popup-medium .ui-tabs-nav,
.modal-popup-large .ui-tabs-nav,
.modal-popup-static .ui-tabs-nav,
.modal-popup-preprocessing .ui-tabs-nav {
  position: sticky;
  top: 0;
  background: #ffffff;
  z-index: 3;
}
.modal-popup-medium .textarea-flexible,
.modal-popup-large .textarea-flexible,
.modal-popup-static .textarea-flexible,
.modal-popup-preprocessing .textarea-flexible {
  max-height: 200px;
  overflow-y: auto;
}

.global-macro-table .table-col-value,
.global-macro-table .table-col-template-value,
.host-macros-table .table-col-value,
.host-macros-table .table-col-template-value {
  width: 300px;
}

.inherited-macros-table .table-col-value,
.inherited-macros-table .table-col-parent-value,
.inherited-macros-table .table-col-template-value,
.inherited-macros-table .table-col-global-value {
  width: 300px;
}

.active-readonly[readonly] {
  color: #1f2c33;
  background-color: #ffffff !important;
  border-color: #acbbc2;
}

.valuemap-list-table tbody td {
  border-bottom: 1px solid #ebeef0;
}
.valuemap-list-table tbody tr:first-child td {
  border-top: 1px solid #ebeef0;
}

.mappings-table {
  display: grid;
  grid-template-columns: auto auto minmax(auto, 100%);
}
.mappings-table > div {
  text-align: left;
}
.mappings-table > div:nth-child(3n + 2) {
  text-align: center;
  padding: 0 10px;
}

.valuemap-checkbox {
  margin-top: 10px;
}

.overlay-dialogue .valuemap-list-table td {
  vertical-align: top;
}

.form-grid .subscriptions-table th {
  color: #768d99;
}
.form-grid .subscriptions-table .icon {
  margin-right: 3px;
  vertical-align: text-bottom;
}
.form-grid .tags-table {
  width: auto;
}
.form-grid .tags-table tr:not(.form_row) td {
  padding-top: 0;
}

.import-compare {
  display: flex;
  max-height: calc(100vh - 220px);
}
.import-compare .toc {
  flex: 20%;
  overflow-y: auto;
  overflow-x: hidden;
}
.import-compare .diff {
  flex: 80%;
  margin-left: 5px;
  overflow: auto;
  border: 1px dashed #acbbc2;
}

.list-dashed li {
  margin-left: 1em;
}
.list-dashed li::before {
  content: '\2013';
  float: left;
  margin-left: -1em;
}

.overlay-dialogue #host-form #macrosFormList .form-field,
.overlay-dialogue #templates-form #macrosFormList .form-field {
  grid-column-start: 1;
}
.overlay-dialogue #host-form #macrosFormList .table-forms-td-left,
.overlay-dialogue #templates-form #macrosFormList .table-forms-td-left {
  display: none;
}
.overlay-dialogue #host-form #macrosFormList .table-forms-td-right,
.overlay-dialogue #templates-form #macrosFormList .table-forms-td-right {
  width: 100%;
}

.linked-templates > .table-forms {
  margin-bottom: 5px;
  line-height: 24px;
}
.linked-templates > .table-forms td,
.linked-templates > .table-forms th {
  padding: 0 5px 0 0;
}
.linked-templates > .table-forms td:last-child,
.linked-templates > .table-forms th:last-child {
  width: 0;
  padding-right: 0;
}

.audit-details-popup-wrapper {
  margin: 5px 10px;
}
.audit-details-popup-wrapper .audit-details-popup-textarea {
  width: 100%;
  height: 135px;
}

.audit-details-wrapper {
  display: flex;
  justify-content: space-between;
}
.audit-details-wrapper .audit-show-details-btn-wrapper {
  margin: 0 5px 0 5px;
}

.color-accent,
.color-accent.btn-icon:not([disabled]),
.color-accent.btn-link:not([disabled]),
.color-accent.link-action:not(:hover):not(:focus),
.color-accent.link-alt:not(:hover):not(:focus) {
  color: #f24f1d;
}
.color-accent.btn-link:not([disabled]),
.btn-link.color-accent.link-action:not([disabled]):not(:hover):not(:focus),
.btn-link.color-accent.link-alt:not([disabled]):not(:hover):not(:focus) {
  border-color: #f24f1d;
}

.color-icon,
.color-icon.btn-icon:not([disabled]),
.color-icon.btn-link:not([disabled]),
.color-icon.link-action:not(:hover):not(:focus),
.color-icon.link-alt:not(:hover):not(:focus) {
  color: #768d99;
}
.color-icon.btn-link:not([disabled]),
.btn-link.color-icon.link-action:not([disabled]):not(:hover):not(:focus),
.btn-link.color-icon.link-alt:not([disabled]):not(:hover):not(:focus) {
  border-color: #768d99;
}

.color-negative,
.color-negative.btn-icon:not([disabled]),
.color-negative.btn-link:not([disabled]),
.color-negative.link-action:not(:hover):not(:focus),
.color-negative.link-alt:not(:hover):not(:focus) {
  color: #e33734;
}
.color-negative.btn-link:not([disabled]),
.btn-link.color-negative.link-action:not([disabled]):not(:hover):not(:focus),
.btn-link.color-negative.link-alt:not([disabled]):not(:hover):not(:focus) {
  border-color: #e33734;
}

.color-warning,
.color-warning.btn-icon:not([disabled]),
.color-warning.btn-link:not([disabled]),
.color-warning.link-action:not(:hover):not(:focus),
.color-warning.link-alt:not(:hover):not(:focus) {
  color: #e99003;
}
.color-warning.btn-link:not([disabled]),
.btn-link.color-warning.link-action:not([disabled]):not(:hover):not(:focus),
.btn-link.color-warning.link-alt:not([disabled]):not(:hover):not(:focus) {
  border-color: #e99003;
}

.color-positive,
.color-positive.btn-icon:not([disabled]),
.color-positive.btn-link:not([disabled]),
.color-positive.link-action:not(:hover):not(:focus),
.color-positive.link-alt:not(:hover):not(:focus) {
  color: #429e47;
}
.color-positive.btn-link:not([disabled]),
.btn-link.color-positive.link-action:not([disabled]):not(:hover):not(:focus),
.btn-link.color-positive.link-alt:not([disabled]):not(:hover):not(:focus) {
  border-color: #429e47;
}

.blue,
.blue.btn-icon:not([disabled]),
.blue.btn-link:not([disabled]),
.blue.link-action:not(:hover):not(:focus),
.blue.link-alt:not(:hover):not(:focus) {
  color: #1e87e3;
}
.blue.btn-link:not([disabled]),
.btn-link.blue.link-action:not([disabled]):not(:hover):not(:focus),
.btn-link.blue.link-alt:not([disabled]):not(:hover):not(:focus) {
  border-color: #1e87e3;
}

.green,
.green.btn-icon:not([disabled]),
.green.btn-link:not([disabled]),
.green.link-action:not(:hover):not(:focus),
.green.link-alt:not(:hover):not(:focus) {
  color: #429e47;
}
.green.btn-link:not([disabled]),
.btn-link.green.link-action:not([disabled]):not(:hover):not(:focus),
.btn-link.green.link-alt:not([disabled]):not(:hover):not(:focus) {
  border-color: #429e47;
}

.grey,
.grey.btn-icon:not([disabled]),
.grey.btn-link:not([disabled]),
.grey.link-action:not(:hover):not(:focus),
.grey.link-alt:not(:hover):not(:focus) {
  color: #768d99;
}
.grey.btn-link:not([disabled]),
.btn-link.grey.link-action:not([disabled]):not(:hover):not(:focus),
.btn-link.grey.link-alt:not([disabled]):not(:hover):not(:focus) {
  border-color: #768d99;
}

.orange,
.orange.btn-icon:not([disabled]),
.orange.btn-link:not([disabled]),
.orange.link-action:not(:hover):not(:focus),
.orange.link-alt:not(:hover):not(:focus) {
  color: #f24f1d;
}
.orange.btn-link:not([disabled]),
.btn-link.orange.link-action:not([disabled]):not(:hover):not(:focus),
.btn-link.orange.link-alt:not([disabled]):not(:hover):not(:focus) {
  border-color: #f24f1d;
}

.red,
.red.btn-icon:not([disabled]),
.red.btn-link:not([disabled]),
.red.link-action:not(:hover):not(:focus),
.red.link-alt:not(:hover):not(:focus) {
  color: #e33734;
}
.red.btn-link:not([disabled]),
.btn-link.red.link-action:not([disabled]):not(:hover):not(:focus),
.btn-link.red.link-alt:not([disabled]):not(:hover):not(:focus) {
  border-color: #e33734;
}

.teal,
.teal.btn-icon:not([disabled]),
.teal.btn-link:not([disabled]),
.teal.link-action:not(:hover):not(:focus),
.teal.link-alt:not(:hover):not(:focus) {
  color: #0f998b;
}
.teal.btn-link:not([disabled]),
.btn-link.teal.link-action:not([disabled]):not(:hover):not(:focus),
.btn-link.teal.link-alt:not([disabled]):not(:hover):not(:focus) {
  border-color: #0f998b;
}

.yellow,
.yellow.btn-icon:not([disabled]),
.yellow.btn-link:not([disabled]),
.yellow.link-action:not(:hover):not(:focus),
.yellow.link-alt:not(:hover):not(:focus) {
  color: #e99003;
}
.yellow.btn-link:not([disabled]),
.btn-link.yellow.link-action:not([disabled]):not(:hover):not(:focus),
.btn-link.yellow.link-alt:not([disabled]):not(:hover):not(:focus) {
  border-color: #e99003;
}
